﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;

using Happy.Examples.OrderManagement.Domain.Orders;

namespace Happy.Examples.OrderManagement.Domain.Test.Orders
{
    [TestClass]
    public class OrderItemTest
    {
        [TestMethod]
        public void OrderItem_Subtotal_Test()
        {
            var orderItem = new OrderItem(Guid.NewGuid(), "苹果", price: 10, quantity: 15);

            Assert.AreEqual(150, orderItem.Subtotal);
        }
    }
}
